//
//  UIFont+Extension.swift
//  CosClub
//
//  Created by 沙睿 on 2020/3/16.
//  Copyright © 2020 ios. All rights reserved.
//

import Foundation
import UIKit

extension UIFont {
    public static func sr_system(fontSize: CGFloat) -> UIFont{
        return UIFont.init(name: "PingFangSC-Regular", size: fontSize) ?? UIFont.systemFont(ofSize: fontSize)
    }
    
    public static func sr_bold(fontSize: CGFloat) -> UIFont{
        return UIFont.init(name: "PingFangSC-Semibold", size: fontSize) ?? UIFont.boldSystemFont(ofSize: fontSize)
    }
    
    public static func sr_number(fontSize: CGFloat) -> UIFont{
        return UIFont.init(name: "Roadgeek2005Mittelschrift", size: fontSize) ?? UIFont.systemFont(ofSize: fontSize)
    }
}
